app.controller('setupAboutPageCtrl',function($scope,$state,PopupService,$stateParams,$http,$myconfig,$timeout,$ionicConfig,$ionicHistory){

    //向服务器请求数据内容
    $scope.aboutUs = function(){
        $http.get($myconfig.api.base_host + '/basicinformation/APP_info')
        .then(function(res){
            if(res.data.success){
                $scope.aboutUsData = res.data.data;
            }else{
                $scope.err = res.data.data;
            }
        });
    };

    $scope.aboutUs();

    $scope.Gonext = function(index){
            $state.go('app.setup_about_service',{Mes:JSON.stringify($scope.aboutUsData.agreement[index])}); //服务协议
    };

    $scope.$on('$ionicView.enter', function(){

        $ionicConfig.views.swipeBackEnabled(false);

    });
});
